package com.audaque.springboot.foshanupload.web.webdemo.controller;

import com.audaque.springboot.foshanupload.log.anno.WebLogAnno;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author wangyan01
 * jsp是动态，不允许直接带.jsp后缀访问，得经过url映射jsp
 */

@Slf4j
@Controller
public class IndexController {
    @WebLogAnno
    @GetMapping("/")
    public ModelAndView status() {
        ModelAndView mv = new ModelAndView();
        //不能用error,因为会与springboot的冲突
        mv.setViewName("index");
        return mv;
    }


}

